stubbed refactor code