add two functions