better operation for the cleanup of stylesheets