Clear obsolete variable
Use forEach instead of unclear reduce