He did things that Yahweh considered to be evil, but he did not do as much evil as his father and mother had done, and he got rid of the pillar for worshiping Baal which his father had made.