trying to serialize average results array