updated some new algorithms