added -N option so that it overwrites file