fixing when a zero-length segments occurs
adding sample annotations