refactor common calls