let get_last_state states = Inthash.find states 0