eliminating implicit conversion warnings