write call to get predictions