code smell? :p