update function definitions