ready for php5.4