updated it so motif uses std::equal, i thought i had already done this but apparently not haha