USE if-thens

to use correct labels for each version of SM .. Needs to be tested