removed deleted files and added program flow