int functions work