added debugging