add unclosed function