added getId public method