labelling which function causes error