trying to fix the file descriptor