update devices string and fix indentation