remove lengthy codes