make update single function