added locking and centering in fr