added rep patterns