this seems redundant as the code above never returns an array larger than 5.