removed unnecessary debug statements