move method def to class from header
some add for batch work