update constructor to have clause