changed refresh variable