adding printing of scan record