fixed another bug, now everything works