changed getnextfeature to getffeature(id)