fixed efficiency problem in static2 (linear is now super fast!)