The formation of the canon