added in debug statements