tuning editor function