update max freq