add coding method