modifications for Lesk Algo