added debug for vars