added q calculator