keep only two layer data input