made some work on inserting algorithm data