faster,var bugfixes