updates modifying correctly