using maxmomentum as an argument in similarity