improve checking for first access in section