added some asserts for debugging