corrected calls to function.