saving a temp version of the code with frequncy expansion sign fixing...