making close work on coookies