added mapping.c