removed some duplication
removed puts statement