fixing float issue