added manipulation by result id, some floating point fixes