little performance improvement in quad command

little performance improvement in quad command