refactor to .rst file