brain segment
slight refactor