tp 2 ej 2 with errors
boundary corretions on lut