adding check for file present