device formatting