#1 added method type