store_checked_ids function

store checked variables as possible ids