changed format of algorithms