fix plus one functionality