using vars in bash properly now