variable based printing