broken refactor using container/list