my bash function