removed bloated code making un-needed file checks