added function to keep track of break