less smelly code