removed a few conditions in prime gen