removed trailing .0 and fixed undefined