refactored pizza generation