fixed model to return an array