cleaning and removing unneeded function from evg