environment not working