fitArray and compareCommon methods