'effects' function using the generic environment