adding in debuging