removed unnecessary console debug outputs and comments