improve the implementation of touching a file