working on segments functionality, been up all night, going to test after sleep