refactor generate marker label