still trying to fix when missing data is present