csv method works but plot doesnt yet