added write digital