working on verifyEditResource