added replacement function for village types