don't cast double to int