changed the mapper from hard coded bool to TType