almost finished multico for single threading