refactor removed oldrenderGatherplot