refactor unused method