added object clearing service and clearing on segmentation of zero objects