initial code part