correct function definitions and calls