get code functionality