unnecesarry files are deleted and necessary codes are added