added getId method