added check whether file exists