update and restrict version