improving asserts after update and delete profile