Cleaning unuseful code