init and replaced forEach