removed clog & added --print