added in Ben's westbrook functions