trimmed some print statements