get value from tail