added debugging for variables