first round of scripts
script to deal with different classes for samve variable