Assure parameters returned have the correct shape