smart code