added sos with stack