delete unuseful logic