ast: clarify the code somewhat