replaced echo with printf