fixed some print typecasting