fixing name function