added printf instructions