fixed one bug: used to be a <= b but now a < b for fits. still wrong