adapt print statement