fixing php5.3 issue