algorithm updates

https Wayne Gallman Jersey