@ends_green is now a 0/1 binary instead of true/false to accomodate R statistical analysis