removed unnecessary plotting