two functions commit