removed dangling function invocation