stabilized selection, fixed ast creation bug