madified load data for new graph method