file functions worked on, but still need more work