remove unuseful code