php code cleanup #success