algo2 added