check on comparing the same type values