added well needed asserts