implemented verfifying in order