fixed invalid syntax for php5.3