adding type() to assertion