removed console loggin debug code