update some parts on function application