work towards drawing graphs