the float cast shouldn't be neccessary