improving assertions