added basic functionality for a repeating head