adjusting function definitions