dimension changed to 10000. todo: fix its effects. change CLS to shared