method for checking sections