added flat segment