ADD: some functions referring to code generated by xcode