updating fc to reduce memory useage by reducing stack size