added the possibility to use labels