trying to get pagnation to work