checking readablity of files.