CHANGED:complete the polish function