duplicate data bug fix

removed a bug that was duplicating data.