fixing unwanted prints