IssueID #31 : refactoring laveling function, variable localization
IssueID #31 : refactoring