added missing keyword
one moved (assert) and added comments