reordering so that it doesnt run as php