for 2D drawing