added function to bashrc