removed some puts debugging statements