change end for close