added trim routine post