changed datastructure of loop time intervals