start of adding new function