change file_talbe_size and fd to int