workign out predict method environments