fixed all shape functions to start with the indices at 0, in order to generate more complete approximations