added stop when dimensions doesnt match