modify p layout