update to include better plotting