rep and rep.int now can be done in a helper