add small functions