replaced type info with declaration in classmapper