added small functions