code for rtep project