add stroke interval tolerance