refactor release