more robust solution for argument comparason