check if file has been changed