return data converted to arrays