fixing print cast