adding smart card erase function