smell bug logic