cleaned up php