commented stuff in close()