int functions finished