updated outgroup script