oska neighbor state generating functionsw