fixing php processing