Fixed function_completion(len,num)