fixed imperial/metric switching