added days closed attribute and associated code