remove tail
check single thread and multi thread