reverted the union operation changes and merged the changes with the PR19