change createPhotons to createPhoton