removing photonlength