updating for parent scope in some printing statements