added DE1 code