not sure why pagination stopped working