add two func