removed getTypes method