added some verification