correct function close tag