simplifying the initializer generator