manage interval
fix #1, cosme