code to update projects