bug with floating intervals fixed
final commit