can now make plot perfectly