nil unused variables when calling method