change enclosure to variable