update current function