finish reservation function