improve syntax.  need {} to work correctly in bash