removed puts from code