printing function belongs in generic repo.