add map function to interval