only return non-zero segments