changed infinite loop style