removed repetitive print statement