apperentally the original code is not a code smell and is fine