create a type for the mapper functions