move repetetion process to single process