added and tested structure for p4