modified generator