replace lesser with smaller

replace lesser with smaller to make it work after #32