implemented a second dynamic: simple loop