writing takeScan