part 2g (maybe problems handling env. be careful)