add: some function definitions.