refactor ansispan