added createlabel function