generate binary seq