todo - write tests for definitions