added support for different number of answers