used variable $HOME instead of ~