minor changes to var names add print commands