It looks like the method above does this but by removing the it doesn't keep the setTypeAndData, is there any reason it needs to stay here but it doesn't need to stay up there?