updated TM alloc link state changing to use states, rather than hard code values