save data instead of making pdf plot