converts phptimeseries too