fixing overlapping errors