change identifier, get context before input