added toYard variable for getting path