import std.algorithm fix