added dependeny and improved assert message