right algorythms to find label type