judgement on whether file exist
working now