modified file controller