before start solution II