make base function.