prevent type error for set()