constant accessor: more idiomatic loops