made plotting more compact