running assertion instead of just raising argument error