trying to get closures to work