full shef logic