dynamic adding a new method