added drawing function