fixed variables that were changed while testing