updated float code