update added check for recur type