arranged the variables and cleaned up temporary visualization