slim down source code