debug statements added