adding init macd