remove debug statements; add instructions