redefine frame enviroment