adding single_code deprecated version
updating code to splitted version