changed format of running code
added environments