removed document resize out of core