enhanced algorithms