change draw rectangle sequence for speed