cant seem to get figure to refresh