optimisation freq computqation