add type for method