groom code; add print statements