formatting for scanning library interface