fixing arraing closure