fixed the gui. have to then account for threshhold