check layer id to select the decoder