type conversions fixed