fixing implicit conversions