added asssertions