made changes to closure