debug for mapping