adding check for railtie