removing unwanted prints