changed updated for php5