remove duplication of loop accessor