fix bug in method  declaration