need to have algorithm to use std::max apparently
mentioned in commit 8c5c59e1
Mentioned in commit 8c5c59e1