map: add func: set start and end