replaced $HOME with ~