fixed toFloat issue! and added some new distance defs