add assignment and api