removing unnecessary invocations