bash functions and organized