forgot to close file descriptor