resolution must be int
refactoring