bad function was bad