update complete marks function