working for inserting two processes