added debug statements php