added a simple scheme for generating labels