plotting now works