better result

changed check seg and conclude box for