more modified code
change java style to php style