separated interval into a variable