improve on assertions