added check for the portion