added getTypes operation