fixed php problem 6