(refactor) cleaned up api endpoint responses to remove duplicate data entries