removed unnecessary debug messages and comment