changed typemap to attributemap