which defines the functions