add two assertion to detect uninitialised variables