Its spelled paginate not piginate ;)