add i=0 and i=h cases for access-2