framework repeat working with complex statement