start work on linear decoder