fix lone rangers algorithm