finall fixed all the plots