copied and pasted debug statements