fixing types of numeric parameters