removed console.log statements
changed data key from name to id