fixed duplicate naming for function labels