use floats for 2.7 division compatibility. remove unused imported packages.