corrected printing (~p for any variable)