added drawing function1