explanation via code what I mean by "avoid green"