tuning cons function