debug drawObject loop