removed DocumentController code too