downgraded from php 5.4 style to 5.3