fixed plotting, removed duplicated data