modify a when it is focused