makes s4 php5.3 compliant