update using props