making process function