add missing done statement