Change method to chain for array