update bias when training