getting the right comparison