removed all variable-by-reference assignments and fixed the J! menu calls