using echo instead of printf