adding  basic smc-code