fixed 64 bit precision warnings