a tiny refactor