fixing errors from first visit