modify ast structure