clean variable name fun -> func