updated php data, still a bug in the method