create check to se if files exists - fixed