EEG manipulation is not clear and needs improvements. Try to use EEGLAB data format is a better way to follow.