adding stashCheck