fixed errors in s production