cleaner B code