They were fearing YHWH, and they were serving their own gods according to the custom of the nations that they were carried away from there.