add some localization code for lab 5