removing puts from output