make it worke on filed trimmed previously