tuning-gen top functionality