improve generated view