writting 161 devices