refactor initial pizza loader for loop