modified rep function argument and repeater were backwards