pushing working code with printf