refactored dupli into repli