added setting id method.