compat with php5.3