ifdef for printf output added