adding Stephen code