removed bad function