module with closure