adding find and encoding