fixing shape in the code