sample of open and close