soc indexing code for mobile app