fn for get subledger closing