calcportal--, added for loop to allow calportal---