straighten function

QTS Straightening