removed duplicate lightPasses function