added open/close time system