improve library by removing useless trait