started refactoring definition logic