fixed the instance bug, haha
bug fixes and efficiencys