more assertions to prevent null values