before adding php portion