remove invoke statement