compatibility wiht 5.3 php