fix intervals and add by the end of .....