fixing variable assignments
adding variable debug