complete ICA part and the main script