fixed cgis with more than 3 parts