update and create working