fix use method into constructor