fix some bugs; still have nback rep bug