preparation for result view