optional param for the mapping function