prev and next aren't required, make them optional