implemented Daniels latest algorithm changes