added instructions in helper for cancel state and type