added a check for new files