removal of unrequired code