Edited find method in segment