adding functions.