added check on sections range