encoding in setup