add function helper and modify mission