took care of duplication