converted fail! to to panic!