add callback to map create