get rid of erb duplicate