move formula into right place