refactor action vars