Investigation of the formation of polyamido-acids