remove useless dto objects