remove unneeded nest