added check of dimension of L0