about to refactor tuning