opening files works but apparently I need to review my function to find functions