forgot file pointer in beginning, think I would learn by now