dubious refactor