fixed the round off issue