begin replacing echo with printf