handle creating printing and deleting q-expressions