added in the collect method