completed verifMap function (not finished)