add 'option' for moving averages