mapping by code