flush out foreach,repository get example added