reverted to code segmentation