removed for loop added php access