incorrectly using echo instead of puts