corrected closure issue