changed to working with full file