move functions from bash_profile to functions