fixing types of integer values