new function: setId