added support for multiple variants