encode problem