new bash function