changing constructor to use UPDATE sink mode