changed func_name with __name__