added more constrains and fields to store the start res and karma