clean up x label logic