implemented gct input and data processing.