add interface for drawing polygon