updated ~ to $HOME