tokner in one function