refactoring: uses integer attribute type