update parser to handle moving average