about to remove parentTag from the code
removed parentTag and deleted unused code