added encoded check