beautifulized code