center primary label
clean up code