now checking if files exist