getTypes works

error is further down in the code.