work on bash output (function now)