modify repeatPrevious method format