reverted simplification cause of php < 5.3.6