fit method in LacationController