added addLabel and setLabel functioin