fixed some oversights in function calls