adds method chaining pattern