call function and tmp files