moved conversion function to src/conversions/conversions.go