added plane drawing function