accidentally had position as an int! changed to float, now thing are nonzero