getting tokens from funcs and brackets