fixed min search
changed min/max lenght to 8 bit