better int handling