removed unused function
minor precision tweak