fix rotate not returning an array