add three functions.