updated check for sx