added close call