removed type conversion warnings