performance fixes in QuadCommand

performance fixes in QuadCommand