move item creation to separate method