code finished, start tuning