removed PHP5 codes