Yes, I know that
I had done just factory reset earlier, but after that it kept on booting into recovery mode everytime I reboot the phone. Then I cleared system data to flash the ROM again. I should have done factory reset through recovery mode rather than from phone settings.