removing unnecessary helper func print-map