added objective c functions (needed to be converted to python)