added most functionality to one function, changed name to breakpoints