add option to take search length
remove old todo