updates before actions