got the actual conversion working when changing units