added assertions