replaced some values with constants
union for data from encoder