drawing working correctly