removing unnecessary logic or lines