modified printf stmt