add closure stuff