Card writibng prep_sm