fixed repeater function