fixing id vars