added drawing functionality