before device