correction of is_green test